<?php

require_once '../include/init.php';

$id = isset($_GET['id']) ? $_GET['id'] : '';

$table = Nuo::getTable('core@photo');

$select = $table -> select() -> where('oid=?', $id);

$row = $table -> fetchRow($select);

if (is_object($row))
{
	echo $row -> url;
}
else
{
	echo '';
}
exit(0);
